package com.itany.factory;

import java.util.Date;

/**
 * Author:石小俊
 * Date: 2022/11/3 16:38
 */
public class Test {

    public static void main(String[] args) throws IllegalAccessException, InstantiationException, ClassNotFoundException {
        User user = (User) ObjectFactory.getObject("user");
        Emp emp = (Emp) ObjectFactory.getObject("emp");
        Date date = (Date) ObjectFactory.getObject("date");
        System.out.println(user);
        System.out.println(emp);
        System.out.println(date);
    }

}
